

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>

</title><link href='./home/css/etm.css' rel='stylesheet' type='text/css' /><!--[if IE 8]> <link href='/Themes/Theme3/ie8Fix.css' rel='stylesheet' /> <![endif]-->

    <script src="./home/js/WdatePicker.js"></script>
    <script src="./home/js/jquery-1.4.2.min.js"></script>
    <script src="./home/js/flexigrid.js"></script>
    <script src="./home/js/jQuery.Ex.js"></script>
    <meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE"/><script src='./home/js/jquery.nicescroll.min.js' type='text/javascript'></script><script type='text/javascript'>var isEtmClient=false;function ReSizeScrollbar() { if ($('form').getNiceScroll().length > 0) {     $('form').getNiceScroll().onResize();}}function ReSizeFlexgridScrollbar() { if ($('.bDiv').getNiceScroll().length > 0) {     $('.bDiv').getNiceScroll().onResize();}}function InitFlexgridScrollbar(){     $('.bDiv').niceScroll({cursorcolor: '#75A801',zindex:4});}function ReSizenDivScrollbar() { if ($('.flexigrid .nDiv').getNiceScroll().length > 0) {     $('.flexigrid .nDiv').getNiceScroll().onResize();}}function InitnDivScrollbar(){     $('.flexigrid .nDiv').niceScroll({cursorcolor: '#75A801',horizrailenabled:false});}function proxyExecuteFun(funName) {if(funName == undefined || funName==null|| funName.length==0){window.parent.showsending(true, "执行中，请耐心等待");setTimeout(function() { window.parent.showsending(false); }, 5000);return;}  if (window[funName]()) {window.parent.showsending(true, "执行中，请耐心等待");setTimeout(function() { window.parent.showsending(false); }, 5000);return true; } return false; };var _tmpOnSelectedFile = null;function onSelectedFile(fileName, fileUrl, isImg) {   if (_tmpOnSelectedFile != null) {        _tmpOnSelectedFile(fileName, fileUrl, isImg);    }}function showFileList(callback) {   window.parent.showDialog('查看素材库', '/Modules/OA/CMyFileListView.aspx?navId=58d684e4-adf2-4dd9-968a-04e200530b9d', '900px', '450px');   _tmpOnSelectedFile = callback;}$(function () {if (navigator.userAgent.toLowerCase().indexOf('edge/') != -1) { $('input[type=submit],.tmpSubmitButton').bind({ mouseenter: function () { $(this).addClass('tmpSubmitButton'); $(this).prop('type', 'button'); }, mouseleave: function () { $(this).removeClass('tmpSubmitButton'); $(this).prop('type', 'submit'); }, click: function () { $(this).removeClass('tmpSubmitButton'); $(this).prop('type', 'submit'); } }); }if (window.parent != undefined && window.parent != null && typeof window.parent.showsending != "undefined") { window.parent.showsending(false, ''); }$(".button").each(function() { if ($(this).attr("type") == "submit" &&!$(this).hasClass('noloading') && window.parent != undefined && window.parent != null && typeof window.parent.showsending != "undefined") { var tmpClick = $(this).attr("onclick");if(tmpClick == undefined || tmpClick==null|| tmpClick.length<2){ $(this).attr("onclick","proxyExecuteFun();");return;}  if (tmpClick.indexOf("return ") != -1 && tmpClick.indexOf("(") != -1) { tmpClick = tmpClick.substring(7).replace(/\s+/g, ''); if (tmpClick.indexOf("()") != -1) { var funName = tmpClick.substring(0, tmpClick.indexOf("(")); $(this).attr("onclick","return proxyExecuteFun('" + funName + "');"); } } } });$('body').click(function() {     if (typeof parent.onChildPageClick !='undefined') {         parent.onChildPageClick();     }});     $('form').height($(window).height()-0).niceScroll({cursorcolor: '#75A801',horizrailenabled:false });     $(window).resize(function () {         ReSizeScrollbar();     });});</script>
    <script type="text/javascript">
        function EditDlg(ExpenseApplyGuid, navId, dostatus) {
            if (dostatus != "1") {
                window.parent.showDialog("费用登记", "../Modules/OA/ExpenseApplyEdit.aspx?sc=btn&navId=58d684e4-adf2-4dd9-968a-04e200530b9d&ExpenseApplyGuid=" + ExpenseApplyGuid, "640px", "300px");
                return false;
            }
            else {
                alert("该申请已经通过，不能修改");

            }
        }
        $(function () {
            $(".ExpenseApplyDelete").live("click", function () {
                var dostatus = $(this).attr("Dostatus");
                if (dostatus != "1") {
                    if (confirm("确定要删除吗？")) {
                        $.AjaxETM("OA_ExpenseApplyDelete", { "ExpenseApplyGuid": $(this).attr("ExpenseApplyGuid") },
                            function (data) {
                                alert(data);
                            },
                             true, "text");
                    }
                }
                else {
                    alert("该申请已经通过，不能删除");
                }

            });
        });

        function Del() {
            var ExpenseApplyGuid = "";
            var count = 0;
            var dostatus = "";
            $("input[name='selectItem']:checkbox:checked").each(function () {
                ExpenseApplyGuid += $(this).val() + ",";
                count += 1;
            });
            if (count == 0) {
                alert("请选择一条记录");
                return false;
            }
            else {
                if (confirm("确定要删除吗")) {
                    $.AjaxETM("OA_ExpenseApplyDelete_More", { "ExpenseApplyGuid": ExpenseApplyGuid },
                        function (data) {
                            alert(data);
                        },
                            true, "text");
                }
            }
            return false;
        }
        function getStatusName(dostatus) {
            if (dostatus == "0") {
                return "未处理";
            }
            else if (dostatus == "1") {
                return "通过";
            }
            else if (dostatus == "2") {
                return "审核中";
            }
            else if (dostatus == 3) {
                return "审核失败";
            }
            else {
                return "";
            }
        }
    </script>
</head>
<body>
    <form method="post" action="ExpenseApplyList.aspx?navId=58d684e4-adf2-4dd9-968a-04e200530b9d" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTk3NDYyODY4NQ9kFgICAw9kFgJmDxBkEBUFCeivt+mAieaLqQzlh7rlt67otLnnlKgG6aSQ6LS5CeS6pOmAmui0uQnkvJrorq7otLkVBSQwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAkMmI2Y2JhZGEtMTM3Yy00N2M3LTkwMzMtMmIwODA2ZTA5NTU2JDUyZjIyOTBhLTY0ODUtNGI3ZS1iNDdlLTVlYWE5YzRjZjA3NiRhMjI5OGM5NS1mNmY3LTQxOGUtODg4Yy00OTI3MWE1NTYyMjkkOTNiNTgwMjctN2ZhOC00MzA4LWFmMDctYjdiOTQyNzFjN2MxFCsDBWdnZ2dnZGRk9wSU5PmxpJeFl3Xq4NeFOSUP2UutuNMhAlD1Rm5g/a8=" />
</div>

<div class="aspNetHidden">

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="A030F5FD" />
	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdAAr5Qp5Viz21toAFxJSGjMVnpIICcBXk6OcckZ9mDupcBr5oRnG1Fu5NdNyII76Hg0jrZVyn799INz3IEZvsXL6o8f2kWNpp1gpX6m2H4LSqm0mPIyE/Jkfwwp8btXG12fxCHcSGVy3cTnd+y3nLeoXS9kYEgwc/Buvu4giY6bupgZNcQtnKtb31hEtbT6bWJ987Sm1SHUeCNEDEgIHUfUJeyi31mTH2+CSxfO4SJLjU47gkxI2BGxHoYPQv1BUF1F4=" />
</div>
        <table class="search">
            <tr>
              <td class="textAlignRight" style="width: 78px;">申请类型：
                </td>
                <td class="borderRight" style="width: 160px;">
                    <select name="ddlCategory" id="ddlCategory" style="width:140px;">
	<option value="00000000-0000-0000-0000-000000000000">请选择</option>
	<option value="2b6cbada-137c-47c7-9033-2b0806e09556">出差费用</option>
	<option value="52f2290a-6485-4b7e-b47e-5eaa9c4cf076">餐费</option>
	<option value="a2298c95-f6f7-418e-888c-49271a556229">交通费</option>
	<option value="93b58027-7fa8-4308-af07-b7b94271c7c1">会议费</option>

</select>
                </td>
                <td class="textAlignRight" style="width: 78px;">申请日期 ：
                </td>
                <td class="borderRight" style="width: 172px;">
                    <input name="tbApplaDate1" type="text" id="tbApplaDate1" class="int" onfocus="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;})" style="width: 70px" />
                    - 
                    <input name="tbApplaDate2" type="text" id="tbApplaDate2" class="int" onfocus="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;})" style="width: 70px" />
                </td>
                <td style="padding-left: 20px;">
                    <input type="button" class="button" value="搜 索" id="btnSearch" />&nbsp;&nbsp;
                 
                    
                </td>
            </tr>
        </table>
        <table id='Test' style='display:none;'></table><input type='text' style='display:none;' id='etmparams' name='etmparams' value='[{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"","Name":"ExpenseApplyGuid","Width":35,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":true,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":"DoStatus","IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":"OA_ExpenseApplyAct","Display":"操作","Name":"ExpenseApplyGuid,CreatorGuid,DoStatus,58d684e4-adf2-4dd9-968a-04e200530b9d,","Width":110,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"申请类型","Name":"CategoryName","Width":100,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"申请人","Name":"ApplyerName","Width":90,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":"yyyy-MM-dd","ColumnType":"DateTime","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"申请日期","Name":"ApplyDate","Width":87,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"申请费用（元）","Name":"Expense","Width":120,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"right","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"是否加急","Name":"IsUrgent","Width":65,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"状态","Name":"DoStatus","Width":100,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"审核人","Name":"CheckUserName","Width":100,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":"CheckSortIDBy","Display":"审核级数","Name":"CheckSortID","Width":100,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"备注","Name":"Notes","Width":300,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"left","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false}]'/><input type='text' style='display:none;' id='etmUrlparams' name='etmUrlparams' value='[{"Key":"navId","Value":"58d684e4-adf2-4dd9-968a-04e200530b9d"}]'/><input type='text' style='display:none;' id='etmPageUrl' name='etmPageUrl' value='http://vip.yj.etmcn.com/Modules/OA/ExpenseApplyList.aspx?navId=58d684e4-adf2-4dd9-968a-04e200530b9d'/><input type='text' style='display:none;' id='pagename' name='pagename' value='OA_ExpenseApplyList'/><input type='text' style='display:none;' id='pageamethod' name='pageamethod' value='OA_ExpenseApplyListOA_ExpenseApplyList'/><script type='text/javascript'> var etmFormId='form1';function fixIE9() {if ($.browser.msie && $.browser.version == 9) {$('#form1 select').each(function () {var name = $(this).attr('name');if (name != undefined && name.length > 0) {var value = $(this).val();if (value == null) {value = $(this).find('option:first').attr('value');$(this).val(value);}}});}}function RefreshGrid(){ $('#Test').flexOptions().flexReload(); };function addFormData() {fixIE9(); var dt = $('#form1').serializeArray(); $('#Test').flexOptions({ params: dt }); return true; }$(function () { $('#btnSearch').click(function () { $('#Test').flexOptions({ newp: 1 }).flexReload(); return false; }); });$('#Test').flexigrid({url: './data/bgFesq.json',sortname: 'CreateTime',sortorder: 'desc',usepager: true,useRp: true,rpOptions: [20,30,50,100,200],rp: 30,colModel: [{ display: '', name: 'ExpenseApplyGuid',etmname:'ExpenseApplyGuid', width: 35, sortable: false, align: 'Center', checkbox: true ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '操作', name: 'ExpenseApplyGuid,CreatorGuid,DoStatus,58d684e4-adf2-4dd9-968a-04e200530b9d,',etmname:'OA_ExpenseApplyAct', width: 110, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '申请类型', name: 'CategoryName',etmname:'CategoryName', width: 100, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '申请人', name: 'ApplyerName',etmname:'ApplyerName', width: 90, sortable: false, align: 'center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '申请日期', name: 'ApplyDate',etmname:'ApplyDate', width: 87, sortable: false, align: 'center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'yyyy-MM-dd',ColumnType:'DateTime',IsJsAddColumn:false},{ display: '申请费用（元）', name: 'Expense',etmname:'Expense', width: 120, sortable: false, align: 'right', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '是否加急', name: 'IsUrgent',etmname:'IsUrgent', width: 65, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '状态', name: 'DoStatus',etmname:'DoStatus', width: 100, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '审核人', name: 'CheckUserName',etmname:'CheckUserName', width: 100, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '审核级数', name: 'CheckSortID',etmname:'CheckSortIDBy', width: 100, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '备注', name: 'Notes',etmname:'Notes', width: 300, sortable: false, align: 'left', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false}],width: $(window).width(),height: $(window).height()-205+60,onSubmit: addFormData});</script>
       <div style="margin-left: 20px;"><input type="submit" name="btnAdd" value="添 加" onclick="return EditDlg(&#39;&#39;,&#39;&#39;,&#39;&#39;);" id="btnAdd" class="button" />
                     &nbsp;&nbsp;
            <input type="submit" name="btnDel" value="批量删除" onclick="return Del();" id="btnDel" class="button" /></div>
    </form>
</body>
</html>
